export const Layout = () => import('@/layout/index.vue')

export default {
  path: '/base',
  component: Layout,
  name: 'base',
  meta: {
    title: '后台管理',
    icon: 'people'
  },
  children: [
    {
      path: '',
      component: () => import('@/views/manage/users.vue'),
      name: 'base-users',
      meta: { title: '用户', noCache: true, icon: 'component' }
    },
    {
      path: 'menus',
      name: 'base-menus',
      component: () => import('@/views/manage/menus.vue'),
      meta: { title: '菜单', noCache: true, icon: 'component' }
    },
    {
      path: 'permissions',
      name: 'base-permissions',
      component: () => import('@/views/manage/permissions.vue'),
      meta: { title: '权限', noCache: true, icon: 'component' }
    },
    {
      path: 'logs',
      name: 'base-logs',
      component: () => import('@/views/manage/logs.vue'),
      meta: { title: '日志', noCache: true, icon: 'component' }
    }
  ]
}
